package com.gupaoedu.design.strategy.pay.impl;

import com.gupaoedu.design.strategy.pay.PayMent;
import com.gupaoedu.design.strategy.pay.PayStatus;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/13.
 */
public class WechatPay implements PayMent {

    public PayStatus pay(String uid, double amount) {
        System.out.println("欢迎使用微信。");
        System.out.println("正在支付，请稍后...");
        PayStatus ps = new PayStatus();
        ps.setCode(200);
        ps.setMsg("支付成功");
        ps.setData(amount);
        return ps;
    }
}
